{"static":"{{ static }}","result":[{% for dx in data %}{
    "data":{{ dx.PDdata }},
"datatime":"{{ dx.PDdatetime|date:"Y-m-d" }}T{{ dx.PDdatetime|date:"H:i:s" }}"}
    {% if forloop.last is False %}
        ,
    {% endif %}
{% endfor %}
],"datatime":"{{ datetime}}"}